home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Openstep 4.2 (Developer)
/
Openstep Developer 4.2.iso
/
NextDeveloper
/
Source
/
GNU
/
uucp
/
Uucp.framework
/
unix.subproj
/
basnam.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-10-09
|
349 b
|
23 lines
/* basnam.c
Get the base name of a file. */
#include "uucp.h"
#include "uudefs.h"
#include "sysdep.h"
#include "system.h"
/* Get the base name of a file name. */
char *
zsysdep_base_name (zfile)
const char *zfile;
{
const char *z;
z = strrchr (zfile, '/');
if (z != NULL)
return zbufcpy (z + 1);
return zbufcpy (zfile);
}